#ifndef GROUP_H
#define GROUP_H

#include<string>
#include<vector>
using namespace std;
#include"groupuser.hpp"

class Group
{

public:
    Group(){}
    Group(int id,string name,string desc):groupId(id),groupName(name),groupDesc(desc)
    {}
    
    void setId(int id) {groupId = id;}
    void setName(string name){groupName = name;}
    void setDesc(string desc){groupDesc = desc;}

    int getId() {return groupId;}
    string getName() {return groupName;}
    string getDesc() {return groupDesc;}

    // 通过引用返回 即可操作数据又可获取数据
    vector<GroupUser>& getUsers() {return this->users;}

private:
    int groupId;
    string groupName;
    string groupDesc;

    vector<GroupUser> users;

};



#endif 